package com.shop.service;

import java.util.List;
import java.util.Set;

/**
 * @ClassName DtsPermissionService
 * @Author xiao宋
 * @Date 17:51  2022/10/13
 * @Version 1.0
 * @Description TODO
 */
public interface DtsPermissionService {
    /**
     * 通过用户的权限 ID 查询他对应的权限信息
     * @param roleIds
     * @return
     */
    Set<String> findPermsById(Integer[] roleIds);

    /**
     * 修改权限
     * @param roleId
     * @param permissions
     */
    void updatePermissions(int roleId, List<String> permissions);
}
